<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\OrderSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Orders';
$this->params['breadcrumbs'][] = $this->title;

?>
<div class="order-index">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Create Order', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
//        'columns' => [
//            ['class' => 'yii\grid\SerialColumn'],
//
//            'id',
//            'ext_order_id',
//            'increment_id',
//            'magento_order_id',
//            'payment_method',
//            'storehouse_id',
//            'payment_status',
//            'order_type',
//            'order_status',
//            'last_track_status',
////            'shipping_method',
////            'shipping_method_origin',
////            'shipping_description',
////            'shipping_description_origin',
////            'shipping_track_no',
////            'waybill',
////            'payment_at',
////            'process_at',
////            'has_shipment',
////            'shipped_at',
////            'shipped_count',
////            'total_item_count',
////            'edited',
////            'approved',
////            'blocked',
////            'paused',
////            'paused_uid',
////            'changed',
////            'reshipped',
////            'expedited',
////            'created_at',
////            'updated_at',
////            'uid',
////            'website_id',
////            'store_id',
////            'from',
////            'currency_code',
////            'grand_total',
////            'base_grand_total',
////            'static_grand_total',
////            'subtotal',
////            'base_subtotal',
////            'base_discount_amount',
////            'base_shipping_amount',
////            'shipping_amount',
////            'discount_amount',
////            'discount_points',
////            'discount_points_amount',
////            'base_discount_points_amount',
////            'system_discount',
////            'discount_description',
////            'package_return',
////            'shipping_insurance',
////            'shipping_discount_amount',
////            'base_shipping_discount_amount',
////            'store_credit_amount',
////            'static_store_credit_amount',
////            'base_store_credit_amount',
////            'gift_card_discount_amount',
////            'base_gift_card_discount_amount',
////            'ups_special',
////            'has_gift',
////            'has_prime_gift',
////            'transaction_id',
////            'presale',
////            'presale_timeline',
////            'magento_return_id',
////            'tariff_insurance_amount',
////            'base_tariff_insurance_amount',
////            'coupon_code',
////            'coupon_rule_name',
////            'prime_discount_amount',
////            'base_prime_discount_amount',
////            'google_order_id',
////            'shipping_tax_amount',
////            'has_print_shipment_label',
////            'has_bundle',
////            'magento_user_lev_ordered',
////            'customer_id',
////            'customer_group',
////            'haiwaicang_export',
////            'haiwaicang_export_uid',
////            'guuid',
////            'is_fraud',
////            'distributor',
////            'distributor_order_id',
////            'source',
////            'blocked2',
////            'weight',
////            'sync_success',
////            'email:email',
////            'orders_type',
//
//            ['class' => 'yii\grid\ActionColumn'],
//        ],
    ]); ?>


</div>
